package com.itec.learn.spring.aop.aspectj;

import com.itec.learn.spring.aop.IHello;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author chenyiqun
 */
public class TestAspect {

    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("spring.xml");

        IHello hello = (IHello)context.getBean("helloImpl");

        hello.hello("Tony");
        hello.hi("Tony");

    }
}
